GBML manual / Constants

BTN_DOWN

The GBA’s DOWN button, for btn_held/btn_pressed/btn_released.

Syntax

BTN_DOWN: constant

Description

Names the GBA's DOWN button, for passing to btn_held, btn_pressed or btn_released - the d-pad's down direction. Prefer btn_dy for an axis reading.

Example

if (btn_pressed(BTN_DOWN)) {
    var fired = true;
}

Checks for a fresh press of DOWN this frame.

See also: btn_heldbtn_pressedbtn_released